package com.roncoo.permission.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.roncoo.permission.entity.Admin;
import com.roncoo.permission.entity.AdminroleTMenu;
import com.roncoo.permission.entity.Message;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuechuanhao
 * @since 2021-03-23
 */
public interface IAdminService extends IService<Admin> {

    /**
     * 分页模糊查询
     * @param admin
     * @param page
     * @return
     */
    IPage findAllPage(Admin admin, Page page);

    /**
     * 查询角色对应的菜单
     * @param roleid
     * @return
     */
    List<String> findMenuByRoleid(Integer roleid);

    Message bLogin(Admin admin);

    boolean findPeople(Integer roleid);

    boolean findrole(Integer id);
}
